home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: Help : Problems with Arrays of Arrays
- Date: 8 Mar 1996 14:03:41 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4hqaruINNej1@keats.ugrad.cs.ubc.ca>
- References: <4houo4$o7@niaomi.iscm.ulst.ac.uk>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4houo4$o7@niaomi.iscm.ulst.ac.uk>,
- Shaunna McClintock <shauna@iscm.ulst.ac.uk> wrote:
- >
- >Hi,
- >
- >I'm currently writing a program with a structure as follows:
- >
- >Pop is a structure composing of an int and an array of Chrom
- >Chrom is a structure composing of an int and an array of Gene
- >Gene is a structure
-
- struct Pop Dan? (Sorry, couldn't resist...)
-
-
- >I've problems in that if in Chrom.. Array of Gene > [3] and Array of
- >Chrom > [30]...the program hangs.. i really need much larger arrays...
- >i'm currently using borlandC on my PC.
- >
- >Do anyone have any ideas on how to solve this problem.. does C restrict
-
- Select a different ``memory model'' for the compilation of your project. Your
- problem is likely due to hardware limitations of the 16-bit DOS environment.
- Even if you choose a huge memory model, you are still limited to working within
- 1 megabyte (code + data combined).
-
- Better yet, maybe it's time for you to migrate to a 32-bit operating system
- with a 32-bit development environment.
-
- >its use of arrays of arrays....
-
- Yes and no. The C standard does defines the bounds of the smallest possible
- implementation that can be considered compliant, but implementations are not
- expected to introduce unnecessary arbitrary limits. On the platforms I work
- with, for instance, I could declare a 50 megabyte or larger array easily,
- should I feel so inclined.
-
- --
-
-